import QtQuick

QtObject{

    id:root
    default property list<QtObject> children

    property DeviceContext deviceContext

    property var gameInstance

    //初始化参数
    property var initialParam:({})

    //创建一个Actor
    function spawnActor(actorComp,parent,param = {})
    {
        param.context = root
        var ret = actorComp.createObject(parent,param)
        return ret
    }

}
